Saturday, 14 August 2004 02:38 I send you the definition of a function, should you find it interesting. n --- \ | ___ | O(n) = / floor ( | cos ( // * n / m ) | ) --- | | m=1 O(n) represents the quantity of divisors of the positive integer n. The definition of prime number implies that if n is a prime then O(n) is equal to 2 otherwise it is not. To better interpret this message you should render it with a fixed-width font. However I provide an ECMA-262 definition, too. var O O = function ( n ) { var Quantity var m Quantity = 0 for ( m = 1 ; m <= n ; ++ m ) Quantity += Math . floor ( Math . abs ( Math . cos ( Math . PI * n / m ) ) ) return Quantity } Ciao.